# coding: utf-8

from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base

db_name = 'bilibili.db'
db_engine = create_engine('sqlite:///%s?check_same_thread=False' % db_name)
DataBase = declarative_base()
Session = sessionmaker(bind=db_engine)